import request from '@/utils/request'


//查询所有数据
export function getList() {
  return request({
    url: '/ny-iqc/notice/listAll',
    method: 'get'
  })
}

// 新增通知
export function noticeAdd(data) {
  return request({
    url: '/ny-iqc/notice/add',
    method: 'post',
    data: data
  })
}

//删除分类节点信息
export function delNoticeById(id) {
  return request({
    url: '/ny-iqc/notice/' + id,
    method: 'delete'
  })
}

// 更新通知
export function noticeUpdate(data) {
  return request({
    url: '/ny-iqc/notice/update',
    method: 'post',
    data: data
  })
}

//获取通知详细信息
export function getNoticeById(id) {
  return request({
    url: '/ny-iqc/notice/' + id,
    method: 'get'
  })
}

//OA待办转已办
export function undoToDo(id,scene) {
  return request({
    url: '/ny-iqc/notice/undoToDo/' + id+'/'+scene,
    method: 'get'
  })
}
